Repository navigation
Conversation
Signed-off-by: Muhammad Umar Nadeem <umrndem@gmail.com>
1 of 2 tasks
gnodet-bot
approved these changes
Dec 2, 2026
gnodet-bot
left a comment
There was a problem hiding this comment.
This PR correctly enables the multi-release toolchain IT on the maven-compiler-plugin-4.x branch. The changes are well-scoped and consistent with companion PR #1220 on master.
Changes reviewed:
invoker.properties:1.9 → [10,)gate is correct — exact EOL JDK versions like1.9are unavailable in modern CI; the range properly accepts any JDK 10+ installed.pom.xml—base.java.version:1.8 → 8: Clean modernization.--release 8is the standard form for JDK ≥ 9; removing the1.xalias is correct. The derived toolchain selector[8,)works as intended since the IT gate already requires JDK ≥ 10.pom.xml— java9 execution:release=17 → 9,jdkToolchain=17 → [9,): This fixes a stale setting that would have produced Java 17 bytecode (major 61) instead of Java 9 (major 53), causing the existingassert 53 == getMajor(...)assertions inverify.groovyto fail.pom.xml— java10 toolchain:10 → [10,): Consistent with the same range-based approach.verify.groovy: The addedMETA-INF/versions/10/directory entry assertion correctly accounts for the empty output directory produced by the java10 execution (which has no source files insrc/main/java10/). Themrjar.size() == 17 → 18update is accurate.
The 4.x port goes slightly further than #1220 (master) by also fixing the stale release=17 and adding the java10 directory assertion — both are Maven 4.x-specific behaviors that weren't issues on master.
Pre-fix validation: dynamic check not applicable (IT requires a specific toolchain setup); the static analysis is conclusive — release=17 with assert 53 == getMajor(...) is a guaranteed assertion failure.
LGTM. No issues found.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
4.x counterpart of #1220 for #1099, as requested in the review.
Use compatible JDK ranges for the toolchain gate and compiler selections, keeping the Java 8/9 bytecode checks. Enabling the dormant test also exposed stale release settings: use
8instead of1.8, and restore the Java 9 execution's release from17to9. Account explicitly for the empty Java 10 output directory in the JAR check.With only JDK 17 configured, the original test is skipped. The fixed test runs and its Groovy JAR/bytecode checks pass from a clean build. The existing Java 8/9-specific JUnit cases still skip on Java 17.
mvn -Prun-its clean verifypassed on Maven 4.0.0-rc-7 / Java 17: 22 unit tests and 82 integration builds passed, with 2 environment-specific skips. Checkstyle, Spotless andgit diff --checkpassed.AI helped with the patch, checks and PR text.